package Ex1;

public class Ex08_Q33 {

	// 반복문을 이용한 별찍기
	public static void main(String[] args) {
		for (int j = 1; j <= 7; j++) { //5*7 사각형
			for (int i =1; i<=5; i++) {
				System.out.print("♥"+" ");
			}System.out.println();
		}
		
		
		for (int j = 1; j <= 5; j++) { //5줄 삼각형 int j 는 세로줄 i는 가로줄
 			for (int i =1; i<=j; i++) {
				System.out.print("♥"+" ");
			}System.out.println();
		}
	
		
		/*
		 * 역삼각형 
		 * 세로로 
		 */
	/*	for (int j = 1; j <= 5; j++) { //5줄 역삼각형
			for (int i=5; i>=j; i--) {
				System.out.print("♥"+" ");
			}System.out.println();
		}
*/
	/*	
		for (int j=1; j<=9; j++){
			int limit = (j<=5)? j : (10-j); 
			for(int i=1; i<=limit; i++){
				System.out.print("♥"+" ");
		}
			
			
		System.out.println();
		
		}
		*/

		for (int j=1; j<=4; j++){
			for(int i=1; i<=7; i++){
				
				if(j==1){
					System.out.print("   *");
				}
				
			}
					
			System.out.println();	
		
			
			
			
		}
		


		
		/*
		for (int j=1; j<=5; j++){
			for(int i=3; i>=j; i--){
				System.out.println(" ");
			}
			for(int i=1; =3; i++);
			
		}System.out.println();
	*/
	
	
	}
	
	
}